"use client"
import {useState} from "react";

export default function Template({children}: { children: React.ReactNode }) {
    const [count, setCount] = useState(0)
    return <div className="template">
        <div className="border-2 border-slate-300">
            <p> Dashboard Template count: {count}</p>
            <button className="border-2 border-rose-600 rounded-full bg-red-400"
                    onClick={() => setCount(count + 1)}> Increment
            </button>
        </div>
        {children}
    </div>
}